﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessLogic
{
    public static class NewsExtensions
    {
        public static NewsInfo getNewsById(this string id)
        {
            var n = new NewsInfo();
            n["id"] = id.ToString();
            n.Run("News.getById");
            return n.getOne<NewsInfo>();
        }
    }
}
